﻿@model IEnumerable<Model.Student>
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Index</title>
</head>
<body>
    <div>
        <form action="/Home/SC" method="post" enctype="multipart/form-data">
            <input type="file" name="file" id="file" />
            <input type="submit" value="导入" />
        </form>

        <input type="submit" value="导出" onclick="funChu()" />
        <table id="table">
            <tr>
                <th>编号</th>
                <th>姓名</th>
                <th>年龄</th>
                <th>性别</th>
            </tr>
            @foreach (var item in Model)
            {
                <tr>
                    <td>@item.Id</td>
                    <td>@item.Name</td>
                    <td>@item.Age</td>
                    <td>@item.Sex</td>
                </tr>
            }
        </table>
    </div>
</body>
</html>
<script>
    function funChu()
    {
        location.href = "/Home/DaoChu";
    }
</script>